<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>生命周期</title>
		<script src="https://cdn.jsdelivr.net/npm/vue"></script>
	</head>
	<body>
		<div id="app"></div>
		<script>
			var vm = new Vue({
				el:'#app',
				data:{
					a:1
				},
				created:function(){
//					this 指vm对象
					console.log('a is:'+this.a);
				}
			})
		</script>
	</body>
</html>
